package com.gao.cluster.common.req;

import java.util.Date;

/**
 * 下单请求
 */
public class OrderReq {

    /** 用户ID */
    private Long userId;

    /** 产品 ID */
    private Long productId;

    /** 下单时间 */
    private Date orderD;

    public OrderReq() {
    }

    public OrderReq(Long userId, Long productId) {
        this.userId = userId;
        this.productId = productId;
        this.orderD = new Date();
    }

    public OrderReq(Long userId, Long productId, Date orderD) {
        this.userId = userId;
        this.productId = productId;
        this.orderD = orderD;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Date getOrderD() {
        return orderD;
    }

    public void setOrderD(Date orderD) {
        this.orderD = orderD;
    }
}
